package com.teach.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.teach.mapper.ClassMapper;
import com.teach.pojo.Class;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClassServiceImpl extends ServiceImpl<ClassMapper, Class> implements ClassService{
    @Autowired
    private ClassMapper classMapper;

    @Override
    public Class getClassByUserId(Long id) {
        return classMapper.getClassByUserId(id);
    }
}
